package edu.sctu.practice.class02.lvchang.parametersReturn;

/**
 * Created by Administrator on 2015/9/18.
 */
public class HomeDog extends Dog {

    public HomeDog(String newName, int newAge) {
        name = newName;
        age = newAge;
    }


    public void judgeAge1() {
        if (age > 5) {
            setName();
            setColor();
        } else {
            setName();
            setNumber();
            setAge();
            setSex();
            setColor();
        }

    }
}
